<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/6/14
 * Time: 7:36 PM
 */

namespace sql;

if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}

/**
 * Used for storing query parameters
 */
class Params
{

  /**
   * @var array string parameters for sql query
   */
  private $params;

  /**
   * @var array string parameters for sql query
   */
  private $separator;

  /**
   * (PHP 5)<br/>
   * @param string $separator
   */
  function __construct($separator)
  {
    $this->separator = $separator;
  }

  /**
   * @param string $param
   * @param string $value
   */
  public function addParam($param, $value)
  {
    $this->params[$param] = $value;
  }

  /**
   * @return string separator
   */
  public function getSeparator()
  {
    return $this->separator;
  }

  /**
   * @return array
   */
  public function getParams()
  {
    return $this->params;
  }

  /**
   * @param array $params
   */
  public function setParams($params)
  {
    $this->params = $params;
  }

} 